import request from "../utils/request";


/**
 * 数据统计
 * @param {*} obj 
 * @returns 
 */
export const GetStatistics = (obj) => {
    return request({
        url: 'api/Admin/GetStatistics',
        method: "get",
        params: obj,
    });
};

/**
 * 获取订单列表
 * @param {*} obj 
 * @returns 
 */
export const GetOrders = (obj) => {
    return request({
        url: 'api/Admin/GetOrders',
        method: "get",
        params: obj,
    });
}; 

/**
 * 获取畅销商品
 * @param {*} obj 
 * @returns 
 */
export const GetHotGoods = (obj) => {
    return request({
        url: 'api/Admin/GetHotGoods',
        method: "get",
        params: obj,
    });
}; 

/**
 * 获取供应商销售数据
 * @param {*} obj 
 * @returns 
 */
export const GetSupplierSales = (obj) => {
    return request({
        url: 'api/Admin/GetSupplierSales',
        method: "get",
        params: obj,
    });
}; 

/**
 * 获取供应商订单详情
 * @param {*} obj 
 * @returns 
 */
export const GetSupplierOrderDetails = (obj) => {
    return request({
        url: 'api/Admin/GetSupplierOrderDetails',
        method: "get",
        params: obj,
    });
};

/**
 * 获取订单详情
 * @param {*} obj 
 * @returns 
 */
export const GetOrderDetails = (obj) => {
    return request({
        url: 'api/Admin/GetOrderDetails',
        method: "get",
        params: obj,
    });
};




/**
 * 获取订单详情
 * @param {*} obj 
 * @returns 
 */
export const GetGoodsOrderDetails = (obj) => {
    return request({
        url: 'api/Admin/GetGoodsOrderDetails',
        method: "get",
        params: obj,
    });
};